package com.xxchat;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication(scanBasePackages = {"com.xxchat"})   // boot应用
@MapperScan(basePackages = {"com.xxchat.mappers"})          // mapper扫描
@EnableTransactionManagement    // 开启事务
@EnableScheduling               // 开启定时任务
@EnableAsync                    // 开启异步任务
public class XxChatApplication {
    public static void main(String[] args) {
        SpringApplication.run(XxChatApplication.class, args);
    }
}
